﻿using BLL;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace UI.Module.OutOfSet
{
    public partial class OutOfSetDetail : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                string id = Request.QueryString["ID"] ?? "";
                if (id != "")
                {
                    DataSet ds = new  OutOfSetBLL().GetList("id=" + id);
                    if (ds.Tables[0].Rows.Count > 0)
                    {
                        foreach (DataRow item in ds.Tables[0].Rows)
                        {
                            Label1.Text = item["shopName"].ToString();
                            Label2.Text = item["OutOfItem"].ToString();
                            Label3.Text = item["CutMoney"].ToString();
                            Label4.Text = item["LogTime"].ToString();
                            Label5.Text = item["userName"].ToString();
                            Label6.Text = item["CreateTime"].ToString();
                            div_Solve.InnerHtml = item["Solve"].ToString();
                            div_Note.InnerHtml = item["Note"].ToString();
                        }
                    }
                }
            }
        }
    }
}